package newsmessages.decorator;

import newsmessages.abstract_factory.content.IContent;
import newsmessages.abstract_factory.footer.IFooter;
import newsmessages.abstract_factory.header.IHeader;

/**
 * Created with IntelliJ IDEA.
 * User: jeroen
 * Date: 3/25/13
 * Time: 3:16 PM
 */
public abstract class MessageComponent {
    private int id;

    private IHeader header;
    private IContent content;
    private IFooter footer;

    public IHeader getHeader() {
        return header;
    }

    public void setHeader(IHeader header) {
        this.header = header;
    }

    public IContent getContent() {
        return content;
    }

    public void setContent(IContent content) {
        this.content = content;
    }

    public IFooter getFooter() {
        return footer;
    }

    public void setFooter(IFooter footer) {
        this.footer = footer;
    }

    public abstract void testDecorator();
}
